home *** CD-ROM | disk | FTP | other *** search
- -- card: 4717 from stack: in.6
- -- bmap block id: 4978
- -- flags: 0000
- -- background id: 2598
- -- name: Mailing
- ----- HyperTalk script -----
- on opencard
- global CommSpeed,CommPrompt, NodeName, NodeType, Username
- if NodeType = "vms" then
- hide card button id 7
- else
- show card button id 7
- end if
- end opencard
-
- on StartReadMail p1
- global CommSpeed,CommPrompt, NodeName, NodeType, Username
- global CommStorage
- global LastInput
- global StringGot
- global DirectoryGot
- set cursor to busy
- put false into DirectoryGot
- put empty into card field 1
- put empty into card field "UserMessage"
- go card "MailDir"
- show card field 1
- put empty into card field "UserMessage"
- put empy into card field 1
- openascii
-
- if NodeType is "unix" then
- writeascii "x" & return
- displayscreen "dis",CommPrompt
- put return & "& " into prompt
- if p1 = "Normal" then
- writeascii numtochar(17) & "/usr/ucb/mail" & return
- else
- writeascii numtochar(17) & "/usr/ucb/mail -f ~/mbox" & return
- end if
- put empty into card field 1
- displayscreen "dis",prompt,CommPrompt
- displayscreen "dis",prompt,CommPrompt
- else
- writeascii "mail" & return
- put empty into card field 1
- put "MAIL>" into prompt
- put empty into card field 1
- displayscreen "dis",prompt
- end if
-
- if NodeType is "unix" then
- put offset("& ",card field 1) into OK
- else
- put offset("new message",card field 1) into OK
- end if
-
- -- put "OK=" && OK && second word of card field 1
- if OK = 0 then
- if NodeType is "unix" then
- answer "*** Sinulle ei ole uusia kirjeitä (no mail)***"
- go card "Mailing"
- writeascii "x" & return
- displayscreen
- put space into card field 1
- else
- answer " **Sinulle ei ole uusi kirjeitä - tässä vanhat**"
- closeascii
- MailDirectory
- show card field 1
- end if
- else
- show card field 1
- put "Voit lukea nyt kirjeitä. (You can read now)" into card field "UserMessage"
- if NodeType is "unix" then
- writeascii "set crt=19" & return
- end if
- closeascii
- MailDirectory
- end if
- set scroll of card field 1 to 0
- hide message
- end StartReadMail
-
-
-
- -- part 1 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=181 top=100 right=155 bottom=239
- -- title width / last selected line: 65535
- -- icon id / first selected line: -15680 / 49856
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Read letters
- ----- HyperTalk script -----
- on mouseUp
- -- set lockscreen to true
- StartReadMail "normal"
- set lockscreen to false -- with dissolve
- end mouseUp
-
-
- -- part 2 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=254 top=116 right=167 bottom=320
- -- title width / last selected line: 0
- -- icon id / first selected line: 1004 / 1004
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Send a letter
- ----- HyperTalk script -----
- on mouseup
- set lockscreen to true
- global SendMode
- set cursor to watch
- put "send" into SendMode
- put space into card field "userMessage"
- visual effect iris open
- go card "card2"
- put space into card field 1
- set scroll of card field 1 to 0
- hide card field "UserMEssage"
- -- click at the location of card field 1
- -- put the loc of card field 1
- end mouseup
-
-
-
- -- part 3 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=43 top=68 right=123 bottom=95
- -- title width / last selected line: 0
- -- icon id / first selected line: 14953 / 14953
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Go Back
- ----- HyperTalk script -----
- on mouseUp
- global CommSpeed,CommPrompt, NodeName, NodeType, Username
- openascii
- visual effect iris close
- go card "card1"
- closeascii
- end mouseUp
-
-
-
- -- part 4 (field)
- -- low flags: 00
- -- high flags: 2007
- -- rect: left=3 top=200 right=339 bottom=182
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Field 1
-
-
- -- part 5 (field)
- -- low flags: 01
- -- high flags: 2000
- -- rect: left=276 top=203 right=242 bottom=510
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: UserMessage
-
-
- -- part 6 (field)
- -- low flags: 81
- -- high flags: 2002
- -- rect: left=417 top=313 right=336 bottom=493
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: LineCount
-
-
- -- part 7 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=326 top=92 right=143 bottom=420
- -- title width / last selected line: 65535
- -- icon id / first selected line: -15680 / 49856
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Read old letters
- ----- HyperTalk script -----
- on mouseup
- StartReadMail
- end mouseup
-
-
-
- -- part contents for card part 6
- ----- text -----
- Lines 22
-
- -- part contents for card part 5
- ----- text -----
-
-
- -- part contents for card part 4
- ----- text -----
-
-
- 5:55pm@tukki:~% /usr/ucb/mail sorjonen
-
- Subject: Commstack 2.6
-
- CommStack
-
- En l|yt{nyt t{st{ CommSTackist{ mit{{n vikaa, joka olisi aiheuttanut sen
- yhden tach-noten virheellisen talletuksen. Olisikoo ollut niin, ett{
- se tallettui oikein, mutta et huomannut poistaa tech-noten jokaisen
- osan alusta ja lopusta niit{ pupputekstej{. Miten yhdistit tiedostot
- toisiinsa?? Joku Unite kai osaa aika hyvin poistaa liiat, mutta
- append esimerkiksi ei osaa.
-
- Lis{sin BINHEX-homman my|s mailiin. Uusi CommStack 2.6 on maclib:ss{.
-
- Seppo
-
- .
- EOT
- 5:55pm@tukki:~%